#ifndef __BASEUTIL_H__
#define __BASEUTIL_H__

#include "stm32def.h"

#define MIN(a, b) (((a) < (b)) ? (a) : (b))
u8 Hex_To_BCD(u8 Hex_Byte);
u8 BCD_To_Hex(u8 BCD_Byte);
u8 BCD_To_Char(u8 BCD_Byte);

unsigned short	get_checksum(unsigned	char	*buf,unsigned	short	len);


#endif
